import { useRef } from 'react'
import { Button } from 'antd';
import EditDialog from './components/EditDialog'

const DataTable = () => {
  const editDialogRef: any = useRef()

  return (
    <div>
      <Button onClick={() => editDialogRef.current.open()}>打开模态框</Button>

      <EditDialog ref={editDialogRef} />
    </div>
  )
}

export default DataTable
